import request from "@/utils/request";

// 电表报警列表
export function getAlarmlist(params) {
    return request({
        url: "/device/emeter/alarm/data/all",
        method: "get",
        params,
    });
}

// 水表报警列表
export function getWmeterlist(params) {
    return request({
        url: "/device/wmeter/alarm/data/all",
        method: "get",
        params,
    });
}


// 水表详情
export function getWmeterDetail(id) {
    return request({
        url: `/device/wmeter/alarm/detail/${id}`,
        method: "get",
      
    });
}

// 电表处理
export function release(params) {
    return request({
        url: "/device/emeter/manual/release",
        method: "get",
        params,
    });
}

// 水表处理
export function wmeterRelease(params) {
    return request({
        url: "/device/wmeter/manual/release",
        method: "get",
        params,
    });
}
